home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / tcoop.arc / TCOOP2.ARC / TFSOTST.CPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-26  |  750 b   |  28 lines

  1. // Displays a single window 
  2.  
  3. #include <conio.h>
  4. #include "tfsounit.h"
  5. #include "keybrd.h"
  6.  
  7. main()
  8. {
  9.   clrscr();
  10.   Tfso T(0x31, Swappable+WithShadow+Closeable, RedColors);
  11.   T.SetSize(40, 15);
  12.   T.SetLocn(10, 5);
  13.   T.GetImage(T.Overall);      // Save image behind window 
  14.   T.DrawFrame(0,0);
  15.   T.DrawShadows(T.Overall, GetIm, 1);
  16.   T.Clear(177, 0);
  17.   T.HzWrt(0, 0, "Window 1", 0);
  18.   T.HzWrt(0, 1, "Line 1", 0);
  19.   bioskey(0);
  20.   T.Scroll(UpScroll, 1);      // Scroll up one line
  21.   T.Fill(0,14,40,1,177,0);    // Fill with blank line
  22.   bioskey(0);
  23.   T.Swap(T.Overall, PutIm);   // Hide the window
  24.   bioskey(0);
  25.   T.SetLocn(30, 6);           // Change window's position
  26.   T.Swap(T.Overall, GetIm);   // Re-display the window
  27. }
  28.